﻿using DataSync.Common;
using DataSync.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Linq;

namespace DataSync.Proc
{
    public interface IDataSyncWriter
    {
        void Init(XElement xmlnode);

        /// <summary>
        /// 执行
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        int Execute(IList<Dictionary<string, ColData>> data);

        /// <summary>
        /// 预执行
        /// </summary>
        void PreExecute();

        /// <summary>
        /// 后执行
        /// </summary>
        void PostExecute();

        void Close();
    }
}
